import request from '/@/utils/request';

export function agentInviteInfo() {
    return {
        queryList: (data:object) => {
            return request({
                url: 'agent/invite/index',
                method: 'post',
                data
            });
        },
        edit: (data:object) => {
            return request({
                url: 'agent/invite/edit',
                method: 'post',
                data
            });
        },
        cancel: (code:string) => {
            return request({
                url: 'agent/invite/cancel?id='+code,
                method: 'post',
            });
        },
    };
}
